<template>
	<view class="container">
		
		<view class="tui-product-category">
			<view class="tui-category-item" @tap="goPageUrl('/pages/point/order-list')">
				<image src="/static/icons/goods-nav.png" class="tui-category-img" mode="scaleToFill"></image>
				<view class="tui-category-name">兑换订单</view>
			</view>
			<view class="tui-category-item" @tap="goPageUrl('/pages/point/goods-list')">
				<image src="/static/icons/icons.png" class="tui-category-img" mode="scaleToFill"></image>
				<view class="tui-category-name">兑换商品</view>
			</view>
			<view class="tui-category-item"  @tap="goPageUrl('/pages/point/bill-list')">
				<image src="/static/icons/fav.png" class="tui-category-img" mode="scaleToFill"></image>
				<view class="tui-category-name">积分账单</view>
			</view>
		</view>
		
		<view class="tui-product-box">

			<view class="tui-product-list">
				<view class="tui-product-container">
					<block v-for="(item,index) in goodsList" :key="index" v-if="(index+1)%2!=0">
						<!--商品列表-->
						<view class="tui-pro-item" hover-class="hover" :hover-start-time="150" @tap="goGoodsView(item.id)">
							<image :src="item.img_logo" class="tui-pro-img" mode="widthFix" />
							<view class="tui-pro-content">
								<view class="tui-pro-tit">{{item.name}}</view>
								<view>
									<view class="tui-pro-price">
										<tui-tag size="24rpx" padding="10rpx 20rpx" type="light-green" shape="circle" class="tui-right">积分</tui-tag>
										<text class="tui-sale-price">{{item.point}}</text>
									</view>
								</view>
							</view>
						</view>
						<!--商品列表-->
					</block>
				</view>
				<view class="tui-product-container">
					<block v-for="(item,index) in goodsList" :key="index" v-if="(index+1)%2==0">
						<!--商品列表-->
						<view class="tui-pro-item" hover-class="hover" :hover-start-time="150" @tap="goGoodsView(item.id)">
							<image :src="item.img_logo" class="tui-pro-img" mode="widthFix" />
							<view class="tui-pro-content">
								<view class="tui-pro-tit">{{item.name}}</view>
								<view>
									<view class="tui-pro-price">
										<tui-tag size="24rpx" padding="10rpx 20rpx" type="light-green" shape="circle" class="tui-right">积分</tui-tag>
										<text class="tui-sale-price">{{item.point}}</text>
									</view>
								</view>
							</view>
						</view>
						<!--商品列表-->
					</block>
				</view>
				
			</view>
		</view>
		
		<!--加载loadding-->
		<view class="tui-safearea-bottom"></view>
	</view>
</template>
<script>
	import footerMenu from "@/components/footer-menu.vue"
	import tuiIcon from "@/components/thorui/tui-icon/tui-icon.vue"
	import tuiTag from "@/components/thorui/tui-tag/tui-tag"
	import tuiLoadmore from "@/components/thorui/tui-loadmore/tui-loadmore"
	import tuiNomore from "@/components/thorui/tui-nomore/tui-nomore"
	import tuiFab from "@/components/thorui/tui-fab/tui-fab"
	import tuiButton from "@/components/thorui/tui-button/tui-button"
	import tuiListCell from "@/components/thorui/tui-list-cell/tui-list-cell"
	import tuiDivider from "@/components/thorui/tui-divider/tui-divider"
	import tuiListView from "@/components/thorui/tui-list-view/tui-list-view"
	export default {
		components: {
			footerMenu,
			tuiIcon,
			tuiTag,
			tuiLoadmore,
			tuiNomore,
			tuiFab,
			tuiButton,
			tuiListCell,
			tuiDivider,
			tuiListView,
		},
		data() {
			return {
				shopId: 0,
				hasNotice: false,
				systemNotice: '',
				hotSearchInput: [],
				hotSearchTag: [],
				
				
				myInfo: [],
				shopId: 0,
				shopInfo: {},
				myInfoStat: {},
				
				animation: false,
				wxBannerList: [],	//微信端的广告图
				wxHomeAd: [],		//微信端的广告图
				
				goodsList: [],
				pageIndex: 1,
				pageCount: 0,
				pageTotal: 0,
				
				meetList: [],
				

				noMoreData: false,
				loadding: false,
				pullUpOn: true,
				
				isList:false,
				isMeetAdmin: 0,
			}
		},
		
		onLoad: function (options) {
			this.getShopBaseInfo();
			
			this.shopId = uni.getStorageSync('shopId');
			this.getGoodsList();
		},
		
		onShow: function () {
			
		},
		
		methods: {
			
			goSiteTerm: function(type) {
				uni.navigateTo({
					url: '/pages/site/term?type=' + type
				})
			},
			
			//内部跳转页面
			goPageUrl: function(pageUrl) {
				uni.navigateTo({
					url: pageUrl
				})
			},
			
			//商品详情页面
			goGoodsView: function(e) {
				uni.navigateTo({
					url: '/pages/point/goods-info?id=' + e
				})
			},
			
		
			//得到我的个人信息
			getMyBaseInfo: function(){
				uni.request({
					url: this.$apiUrl + '/api/user/baseInfo',
					header: {
						'userId': uni.getStorageSync('userId'),
						'userToken': uni.getStorageSync('userToken'),
						'shopId': uni.getStorageSync('shopId'),
					},
					success: (res) => {
						let resErr = res.data['error'];
						let resMsg = res.data['msg'];
						let resCode = res.data['code'];
						if(resCode == 401) {		//用户未登录
							uni.navigateTo({ url: '/pages/my/login' });
						}else if(resCode == 200){
							let resData = res.data['data'];
							this.myInfo = resData;
							
						}else{
							this.tui.toast(resMsg, 2000, false);
						}
					}
				});
			},
			
			
			//得到商户基本信息
			getShopBaseInfo: function(){
				uni.request({
					url: this.$apiUrl + '/api/shop/baseInfo',
					header: {
						'shopId': uni.getStorageSync('shopId'),
					},
					success: (res) => {
						let resData = res.data['data'];
						this.shopInfo = resData;
					}
				});
			},
			
						
			//得到商品的列表
			getGoodsList: function(type) {
				if(type != 'append') this.pageIndex = 1;
				uni.request({
					url: this.$apiUrl + '/api/point/goodsList',
					header: {
						'userId': uni.getStorageSync('userId'),
						'userToken': uni.getStorageSync('userToken'),
						'shopId': uni.getStorageSync('shopId'),
					},
					data: {
						name: this.searchKey,
						page_num: this.pageIndex,
					},
					success: (res) => {
						let resData = res.data['data'];
						if(this.searchKey){
							this.cleanKeyShow = true;
						}
						if(type == 'append') {		//底部分页加载更多
							this.goodsList = this.goodsList.concat(resData['list']);
						}else{
							this.goodsList = resData['list'];
						}
						this.pageCount = resData['pager']['page_total'];
						this.pageTotal = resData['pager']['count'];
					}
				});
			},
			
			
		},
		
		
		
		//下拉加载刷新
		onPullDownRefresh: function() {
			return false;
			console.log('下拉加载刷新页面');
		},
		
		//底部加载更多
		onReachBottom: function() {
			if (!this.pullUpOn) return;
			this.loadding = true;
			if (this.pageIndex == this.pageCount) {
				this.loadding = false;
				this.pullUpOn = false;
			} else {
				this.pageIndex = this.pageIndex + 1;
				this.getGoodsList('append');
				this.loadding = true;
			//	this.pullUpOn = false;
			}

		}
	}
</script>

<style>
	page {
		background: #f7f7f7;
	}

	.container {
		padding-bottom: 100rpx;
		color: #333;
	}

	/*tabbar*/
	.tui-safearea-bottom {
		width: 100%;
		height: env(safe-area-inset-bottom);
	}

	.tui-ptop-4 {
		padding-top: 4rpx;
	}

	.tui-scale {
		font-weight: bold;
		transform: scale(0.8);
		transform-origin: center 100%;
		line-height: 30rpx;
	}

	.tui-item-active {
		color: #e41f19 !important;
	}

	/*tabbar*/

	.tui-header {
		width: 100%;
		height: 100rpx;
		padding: 0 30rpx 0 20rpx;
		box-sizing: border-box;
		background: #e41f19;
		display: flex;
		align-items: center;
		justify-content: space-between;
	 	position: fixed; 
		left: 0;
		top: 0;
 		z-index: 999; 
	}

	.tui-rolling-search {
		width: 100%;
		height: 60rpx;
		border-radius: 35rpx;
		padding: 0 40rpx 0 30rpx;
		box-sizing: border-box;
		background: #fff;
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		color: #999;
	}

	.tui-category {
		font-size: 24rpx;
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		margin: 0;
		margin-right: 22rpx;
		flex-shrink: 0;
	}

	.tui-category-scale {
		transform: scale(0.7);
		line-height: 24rpx;
	}

	.tui-icon-category {
		line-height: 20px !important;
		margin-bottom: 0 !important;
	}

	.tui-swiper {
		font-size: 26rpx;
		height: 60rpx;
		flex: 1;
		padding-left: 12rpx;
	}

	.tui-swiper-item {
		display: flex;
		align-items: center;
	}

	.tui-hot-item {
		line-height: 26rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.tui-header-banner {
 		padding-top: 20rpx; 
		box-sizing: border-box;
		background: #e41f19;
		margin-top: 88rpx;
	}

	.tui-hot-search {
		color: #fff;
		font-size: 24rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 20rpx;
		box-sizing: border-box;
		position: relative;
		z-index: 2;
	}

	.tui-hot-tag {
		background: rgba(255, 255, 255, 0.15);
		padding: 10rpx 24rpx;
		border-radius: 30rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 24rpx;
		/* margin-left: 20rpx; */
	}

	.tui-banner-bg {
		display: flex;
		height: 180rpx;
		background: #e41f19;
		position: relative;
	}

	.tui-primary-bg {
		width: 50%;
		display: inline-block;
		height: 224rpx;
		border: 1px solid transparent;
		position: relative;
		z-index: 1;
		background: #e41f19;
	}

	.tui-route-left {
		transform: skewY(8deg);
	}

	.tui-route-right {
		transform: skewY(-8deg);
	}

	.tui-banner-box {
		width: 100%;
		padding: 0 20rpx;
		box-sizing: border-box;
		position: absolute;
		/* overflow: hidden; */
		z-index: 99;
		bottom: -80rpx;
		left: 0;
	}

	.tui-banner-swiper {
		width: 100%;
		height: 300rpx;
		border-radius: 20rpx;
		overflow: hidden;
		transform: translateY(0);
	}

	.tui-slide-image {
		width: 100%;
		height: 300rpx;
		display: block;
		border-radius: 20rpx;
	}

	/* #ifdef APP-PLUS || MP */
	.tui-banner-swiper .wx-swiper-dot {
		width: 8rpx;
		height: 8rpx;
		display: inline-flex;
		background: none;
		justify-content: space-between;
	}

	.tui-banner-swiper .wx-swiper-dot::before {
		content: '';
		flex-grow: 1;
		background: rgba(255, 255, 255, 0.8);
		border-radius: 16rpx;
		overflow: hidden;
	}

	.tui-banner-swiper .wx-swiper-dot-active::before {
		background: #fff;
	}

	.tui-banner-swiper .wx-swiper-dot.wx-swiper-dot-active {
		width: 16rpx;
	}

	/* #endif */

	/* #ifdef H5 */
	>>>.tui-banner-swiper .uni-swiper-dot {
		width: 8rpx;
		height: 8rpx;
		display: inline-flex;
		background: none;
		justify-content: space-between;
	}

	>>>.tui-banner-swiper .uni-swiper-dot::before {
		content: '';
		flex-grow: 1;
		background: rgba(255, 255, 255, 0.8);
		border-radius: 16rpx;
		overflow: hidden;
	}

	>>>.tui-banner-swiper .uni-swiper-dot-active::before {
		background: #fff;
	}

	>>>.tui-banner-swiper .uni-swiper-dot.uni-swiper-dot-active {
		width: 16rpx;
	}

	/* #endif */

	.tui-product-category {
		background: #fff;
		padding: 10px;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		font-size: 24rpx;
		color: #555;
		margin-bottom: 20rpx;
		margin-top: 0;
	}

	.tui-category-item {
		width: 20%;
		height: 118rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-direction: column;
		padding-top: 30rpx;
	}

	.tui-category-img {
		height: 80rpx;
		width: 80rpx;
		display: block;
	}

	.tui-category-name {
		line-height: 24rpx;
	}

	.tui-product-box {
		margin-top: 20rpx;
		padding: 0 20rpx;
		box-sizing: border-box;
	}

	.tui-pb-20 {
		padding-bottom: 20rpx;
	}

	.tui-bg-white {
		background: #fff;
	}

	.tui-group-name {
		font-size: 32rpx;
		font-weight: bold;
		text-align: center;
		padding: 24rpx 0;
	}

	.tui-activity-box {
		display: flex;
		border-radius: 12rpx;
		overflow: hidden;
	}

	.tui-activity-img {
		width: 50%;
		display: block;
	}

	.tui-new-box {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.tui-new-item {
		width: 49%;
		height: 200rpx;
		padding: 0 20rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		background: #f5f2f9;
		position: relative;
		border-radius: 12rpx;
	}

	.tui-new-mtop {
		margin-top: 2%;
	}

	.tui-title-box {
		font-size: 24rpx;
	}

	.tui-new-title {
		line-height: 32rpx;
		word-break: break-all;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.tui-new-price {
		padding-top: 18rpx;
	}

	.tui-new-present {
		color: #ff201f;
		font-weight: bold;
	}

	.tui-new-original {
		padding-top: 10rpx;
		display: flex;
		color: #a0a0a0;
		/* text-decoration: line-through; */
		 padding-left: 10rpx;
		 transform: scale(0.8); 
		 transform-origin: left center; 
	}

	.tui-new-img {
		width: 160rpx;
		height: 160rpx;
		display: block;
		flex-shrink: 0;
	}

	.tui-new-label {
		width: 56rpx;
		height: 56rpx;
		border-top-left-radius: 12rpx;
		position: absolute;
		left: 0;
		top: 0;
	}

	.tui-product-list {
		display: flex;
		justify-content: space-between;
		flex-direction: row;
		flex-wrap: wrap;
		box-sizing: border-box;
		/* padding-top: 20rpx; */
	}

	.tui-product-container {
		flex: 1;
		margin-right: 2%;
	}

	.tui-product-container:last-child {
		margin-right: 0;
	}

	.tui-pro-item {
		width: 100%;
		margin-bottom: 4%;
		background: #fff;
		box-sizing: border-box;
		border-radius: 12rpx;
		overflow: hidden;
	}

	.tui-pro-img {
		width: 100%;
		display: block;
	}

	.tui-pro-content {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 20rpx;
	}

	.tui-pro-tit {
		color: #2e2e2e;
		font-size: 26rpx;
		word-break: break-all;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.tui-pro-price {
		padding-top: 20rpx;
	}

	.tui-sale-price {
		font-size: 32rpx;
		font-weight: 500;
		color: #e41f19;
	}

	.tui-factory-price {
		font-size: 24rpx;
		color: #a0a0a0;
		/* text-decoration: line-through; */
		padding-left: 6rpx;
		margin-top: 5rpx;
	}

	.tui-pro-pay {
		padding-top: 10rpx;
		font-size: 24rpx;
		color: #656565;
	}


	.tui-pro-pay-tel {
		padding-top: 10rpx;
		font-size: 30rpx;
		margin-left: 10rpx;
		color: #47ce00;
	}
	.tui-notice-board {
		width: 100%;
		padding-right: 30upx;
		box-sizing: border-box;
		font-size: 28upx;
		height: 60upx;
		background: #fff8d5;
		display: flex;
		align-items: center;
	}
		
	.tui-icon-bg {
		background: #fff8d5;
		padding-left: 30upx;
		position: relative;
		z-index: 10;
	}
		
	.tui-icon-class {
		margin-right: 12upx;
	}
	
	.tui-rolling-news {
		width: 100%;
		padding: 10upx 10upx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: nowrap;
	}
	
	.tui-swiper {
		font-size: 26upx;
		height: 46upx;
		flex: 1;
	}
	
	.tui-swiper-item {
		display: flex;
		align-items: center
	}
	
	.tui-news-item {
		line-height: 24upx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
		
	.tui-scorll-view {
		flex: 1;
		line-height: 1;
		white-space: nowrap;
		overflow: hidden;
		color: #f54f46;
	}
		
	.tui-notice {
		transform: translateX(100%);
	}
		
	.tui-animation {
		-webkit-animation: tui-rolling 12s linear infinite;
		animation: tui-rolling 12s linear infinite;
	}
	
	
	.tui-activity-home-banner {
	/*	display: flex;*/
		border-radius: 12rpx;
		overflow: hidden;
	}
	
	.tui-activity-img-home-banner {
		width: 750rpx;
		width: 100%;
		display: block;
	}
	
	
	.tui-box {
		width: 100%;
		background: #fff;
		box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.1);
		border-radius: 10rpx;
		overflow: hidden;
	}
	
	.tui-assets-box {
		height: 178rpx;
		margin-top: 20rpx;
	}
	
	.tui-assets-box-list{
		margin-top: 20rpx;
	}
	
	.tui-assets-list {
		height: 84rpx;
	}
	
	.tui-assets-num {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		position: relative;
	}
	
	.tui-assets-text {
		font-size: 24rpx;
		font-weight: 400;
		color: #666;
		padding-top: 6rpx;
	}
	
	.tui-tool-box {
		margin-top: 20rpx;
	}
	
	.tui-flex-wrap {
		flex-wrap: wrap;
		height: auto;
		padding-bottom: 30rpx;
	}
	
	.tui-tool-item {
		width: 25%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding-top: 30rpx;
	}
	
	.tui-tool-icon {
		width: 64rpx;
		height: 64rpx;
		display: block;
	}
	
	.tui-badge-icon {
		width: 66rpx;
		height: 30rpx;
		position: absolute;
		right: 0;
		transform: translateX(88%);
		top: -15rpx;
	}
	
	
	
	
	.tui-icon-box {
		position: relative;
	}
	
	.tui-icon-setup {
		margin-left: 8rpx;
	}
	
	.tui-badge {
		position: absolute;
		font-size: 24rpx;
		height: 32rpx;
		min-width: 20rpx;
		padding: 0 6rpx;
		border-radius: 40rpx;
		right: 10rpx;
		top: -5rpx;
		transform: scale(0.8) translateX(60%);
		transform-origin: center center;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 10;
	}
	
	.tui-badge-red {
		background: #F74D54;
		color: #fff;
	}
	
	.tui-badge-white {
		background: #fff;
		color: #F74D54;
	}
	
	.tui-badge-dot {
		position: absolute;
		height: 12rpx;
		width: 12rpx;
		border-radius: 50%;
		right: -12rpx;
		top: 0;
		background: #F74D54;
	}
	
	.tui-mybg-box {
		width: 100%;
		position: relative;
	}
	
	.tui-my-bg {
		width: 100%;
		display: block;
	}
	
	.tui-header-center {
		position: absolute;
		width: 100%;
		height: 128rpx;
		left: 0;
		top: 120rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
	}
	
	.tui-avatar {
		flex-shrink: 0;
		width: 128rpx;
		height: 128rpx;
	 	border-radius: 64rpx;
		display: block;
	}
	
	.tui-info {
		width: 60%;
		padding-left: 30rpx;
	}
	
	.tui-nickname {
		font-size: 36rpx;
		font-weight: bold;
		color: #fff;
		display: flex;
		align-items: center;
	}
	
	.tui-img-vip {
		width: 100rpx;
		height: 36rpx;
		margin-left: 18rpx;
	}
	
	.tui-explain {
		width: 80%;
		font-size: 24rpx;
		font-weight: 400;
		color: #fff;
		opacity: 0.75;
		padding-top: 8rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.tui-btn-edit {
		flex-shrink: 0;
		padding-right: 22rpx;
	}
	
	.tui-header-btm {
		width: 100%;
		padding: 0 30rpx;
		box-sizing: border-box;
		position: absolute;
		left: 0;
		top: 280rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: #fff;
	}
	
	.tui-btm-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	
	.tui-btm-num {
		font-size: 32rpx;
		font-weight: 600;
		position: relative;
	}
	
	.tui-btm-text {
		font-size: 24rpx;
		opacity: 0.85;
		padding-top: 4rpx;
	}
	
	.tui-content-box {
		width: 100%;
		padding: 0 30rpx;
		box-sizing: border-box;
		position: relative;
		top: -72rpx;
		z-index: 10;
	}
	
	.tui-box {
		width: 100%;
		background: #fff;
		box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.1);
		border-radius: 10rpx;
		overflow: hidden;
	}
	
	.tui-order-box {
		height: 208rpx;
	}
	
	.tui-cell-header {
		width: 100%;
		height: 74rpx;
		padding: 0 26rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	
	.tui-cell-title {
		font-size: 30rpx;
		line-height: 30rpx;
		font-weight: 600;
		color: #333;
	}
	
	.tui-cell-sub {
		font-size: 26rpx;
		font-weight: 400;
		color: #999;
		padding-right: 28rpx;
	}
	
	.tui-order-list {
		width: 100%;
		height: 134rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	
	.tui-order-list-tool{
		width: 100%;
		height: 134rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: left;
	}
	
	.tui-order-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.tui-order-text,
	.tui-tool-text {
		font-size: 26rpx;
		font-weight: 400;
		color: #666;
		padding-top: 4rpx;
	}
	
	.tui-tool-text {
		font-size: 24rpx;
	}
	
	.tui-order-icon {
		width: 56rpx;
		height: 56rpx;
		display: block;
	}
	
	.tui-assets-box {
		height: 178rpx;
		margin-top: 20rpx;
	}
	
	.tui-assets-box-list{
		margin-top: 20rpx;
	}
	
	.tui-assets-list {
		height: 84rpx;
	}
	
	.tui-assets-num {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		position: relative;
	}
	
	.tui-assets-text {
		font-size: 24rpx;
		font-weight: 400;
		color: #666;
		padding-top: 6rpx;
	}
	
	.tui-tool-box {
		margin-top: 20rpx;
	}
	
	.tui-flex-wrap {
		flex-wrap: wrap;
		height: auto;
		padding-bottom: 30rpx;
	}
	
	.tui-tool-item {
		width: 25%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding-top: 30rpx;
	}
	
	.tui-tool-icon {
		width: 64rpx;
		height: 64rpx;
		display: block;
	}
	
	.tui-badge-icon {
		width: 66rpx;
		height: 30rpx;
		position: absolute;
		right: 0;
		transform: translateX(88%);
		top: -15rpx;
	}
	
	/*为你推荐*/
	.tui-product-list {
		display: flex;
		justify-content: space-between;
		flex-direction: row;
		flex-wrap: wrap;
		box-sizing: border-box;
	}
	
	.tui-product-container {
		flex: 1;
		margin-right: 2%;
	}
	
	.tui-product-container:last-child {
		margin-right: 0;
	}
	
	.tui-pro-item {
		width: 100%;
		margin-bottom: 4%;
		background: #fff;
		box-sizing: border-box;
		border-radius: 12rpx;
		overflow: hidden;
	}
	
	.tui-pro-img {
		width: 100%;
		display: block;
	}
	
	.tui-pro-content {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 20rpx;
	}
	
	.tui-pro-tit {
		color: #2e2e2e;
		font-size: 26rpx;
		word-break: break-all;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	
	.tui-sale-price {
		font-size: 34rpx;
		font-weight: 500;
		color: #e41f19;
	}
	
	.tui-factory-price {
		font-size: 24rpx;
		color: #a0a0a0;
		/* text-decoration: line-through; */
		padding-left: 12rpx;
	}
	
	.tui-pro-pay {
		padding-top: 10rpx;
		font-size: 24rpx;
		color: #656565;
	}
	
	.tui-list {
		display: flex;
		align-items: center;
		flex-direction:row;	
		flex-wrap:nowrap;
		justify-content:flex-start;
		align-content:baseline;
	}
	
	/* justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly; */
	
	.tui-right {
		margin-left: auto !important;
		margin-right: 26rpx !important;
		font-size: 26rpx;
		line-height: 26rpx;
		color: #999;
	}
	
	.tui-list-cell-name {
		padding-left: 20upx;
		vertical-align: middle;
		line-height: 30upx;
	}
		
	@-webkit-keyframes tui-rolling {
		0% {
			transform: translateX(100%);
		}
		
		100% {
			transform: translateX(-170%);
		}
	}
		
	@keyframes tui-rolling {
		0% {
			transform: translateX(100%);
		}
		
		100% {
			transform: translateX(-170%);
		}
	}
	
</style>